import akshare as ak
import StockKlineChart as skc

# 获取股票数据
df = ak.stock_zh_a_hist(
    symbol="000001",       # 股票代码
    period="daily",        # 日线数据
    start_date="20230101", # 起始日期
    end_date="20251201",   # 结束日期
    adjust="qfq"           # 前复权处理
)

# 创建 K 线图实例
stock_chart = skc.StockKlineChart(df=df, stock_code="000001")
stock_chart.render()